package com.doublefish.doublefishrobot.ui.home.bean;

import android.text.TextUtils;

import com.doublefish.doublefishrobot.utils.LocalizationUtils;

import java.util.List;

/**
 * 作者:dugaofeng on 2024/10/18 16:49
 */
public class ModeBean {

    private int difficulty;
    private String name;      //用于显示的名称
    private String name_en;   //英文名
    private String name_zh;   //中文名

    private List<ModeSettingBean> items;

    public int getDifficulty() {
        return difficulty;
    }

    public void setDifficulty(int difficulty) {
        this.difficulty = difficulty;
    }

//    public String getName() {
//        return name;
//    }
    public String getName() {
        if (TextUtils.isEmpty(name)) {
            return LocalizationUtils.getInstance().isEn() ? name_en : name_zh;
        }
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName_en() {
        return name_en;
    }

    public void setName_en(String name_en) {
        this.name_en = name_en;
    }

    public String getName_zh() {
        return name_zh;
    }

    public void setName_zh(String name_zh) {
        this.name_zh = name_zh;
    }

    public List<ModeSettingBean> getItems() {
        return items;
    }

    public void setItems(List<ModeSettingBean> items) {
        this.items = items;
    }
}
